Method and Apparatus for Secure Instantly-Available Applications in a Computer System

ABSTRACT

A method and apparatus for instantly-available applications in a computer system is presented. A computer that incorporates fast non-volatile primary memory for storing the application software and/or operating system, resulting in an instant-on computer is presented. Large parts of the application code and/or operating system code are stored in non-volatile write-protectable areas of the memory that cannot be modified by malicious sources, resulting in a secure computer. It solves the problem of typical computers having to load the applications from a slow device such as the hard disk to the main memory. This loading is avoided by permanently housing the applications in a non-volatile main memory. The system also solves the problem of corruption of application software areas from malicious sources. The memory system contains writeable and write-protected areas and a memory controller that controls the access to the various regions of the memory.

FIELD OF INVENTION

The present invention relates to the field of computer systems. Specifically the present invention relates to a computer incorporating fast non-volatile primary memory for storing computer applications, resulting in the applications being available for use as soon as the computer is turned on. It also relates to a computer that stores large parts of application and/or the operating system code in non-volatile write-protectable areas that cannot be modified by malicious sources, resulting in a secure computer.

BACKGROUND OF THE INVENTION

At power on, computer systems typically take several minutes to boot the system. This happens because the operating system and applications have to be loaded from a slow storage device such as the hard disk to the system RAM. If a system crashes during use, a user has to wait several minutes to get the system back to use, because the entire boot/load process has to happen. This is annoying and inconvenient to computer users. The present invention consists of a solution to this problem providing an instantly-on computer.

Another problem in computers is corruption of the operating system or application code due to malicious sources. Often applications such as Microsoft Office have to be reinstalled after a malicious attack on the computer. The present invention consists of a method for a secure computer, where applications and/or operating system are stored in a write-protectable medium avoiding corruption by malicious sources.

SUMMARY OF THE INVENTION

Typically in computer systems only a very small part of the boot software is in a fast semiconductor memory. The applications as well as the main operating system code are in the hard drive. The present invention consists of storing the application code in write-protected fast non-volatile memory. By fast, a storage device faster than hard disk is referenced. An example of such a fast non-volatile memory is flash memory. A part of the memory allows read/write accesses. The parts of operating system/application code that need write accesses are stored in this region of the memory. A part of this region is also assigned for the operating system to use for virtual memory, if needed.

Another part of the invention consists of storing large parts of the applications and operating system in write-protected fast non-volatile write-protectable memory. Some writeable area is required for most applications and operating system programs. This is provided in a special region of the write-protectable memory.

Thus the application software and/or operating system, instead of being in the hard disk, will be resident in the fast non-volatile memory, requiring no loading i.e. the applications are already permanently loaded, resulting in a rapidly-on or instant-boot computer in which applications are available as soon as the computer is turned on. If the fast non-volatile memory does not have enough space to hold all applications, key applications can permanently reside in the fast non-volatile memory and the remaining applications can use the current virtual memory system. The applications alone or both applications and operating system can reside in the non-volatile memory.

BRIEF DESCRIPTION OF THE DRAWINGS

A better understanding of the present invention can be obtained when the following detailed description is considered in conjunction with the following drawings:

FIG. 1 illustrates a computer system in accordance with the present invention.

FIG. 2 illustrates parts of secure instant-on system, showing two ways in which contents of its non-volatile memory may be accessed.

FIG. 3 illustrates secure access of programs and data through the computer's system memory.

FIG. 4 illustrates secure access of programs and data through the computer's disk drive control system.

FIG. 5 illustrates details of the secure access component to read and write application configuration or session data.

FIG. 6 illustrates the installation controller through which software can be installed or updated on the computer system.

FIG. 7 illustrates translation of virtual addresses to physical addresses using a page table.

FIG. 8 illustrates a typical page table entry

DETAILED DESCRIPTION OF THE INVENTION

In the following description, several specific details are set forth to provide a thorough understanding of the present invention. However, it will be apparent to those skilled in the art that the present invention can be practiced with variations of the details. Similarly, many details which are within the skills of persons of ordinary skill in the art have been omitted.

Virtual memory [13, 14] has been used in computers for more than 3 decades to create the illusion of large contiguous memory regions for each application. In systems with virtual memories, RAM is used as real memory and applications run from the real memory, also called main memory. Main memory is typically volatile. At power on, the operating system has to be loaded from the disk to the main memory. Since modern operating systems contain a large amount of code, this loading takes several minutes and the delay is annoying and inconvenient to users. But virtual memory system makes it possible for users to not worry about memory size, since applications can be paged in or out.

FIG. 1 illustrates a computer system with non-volatile RAM as the main memory. The CPU can consist of single core or multi-core processors. The CPU can include zero or multiple levels of caches.

The computer in FIG. 1 may contain, but are not limited to the following components: A system bus 101 enables communication between the different parts of the computer system. The CPU 102 may consist of one or more physical processors that execute computer program instructions serially or in parallel. The computer system will have zero or more output devices 103 such as video monitors, video displays (such as television displays), audio output devices (such as speakers.) The computer system will have zero or more input devices 104 which may include devices such as keyboards, mice, tablets, audio microphones or other sensors. The computer may have zero or more network devices 105 for communication. Examples of network devices include computer network interfaces, audio/video networks, telephone networks and wireless communication networks. The computer may have other devices, not explicitly mentioned here, attached to the system bus.

The system bus 101 enables communication between different components of the computer system, in particular with its system memory 106 and its disk drive system 108. The secure instant-on system 107 may communicate directly to the CPU(s), and/or via the system memory 106 and/or via the disk drive system 108. The system memory 106 contains the instant-on system 107. The instant-on system 107 may communicate directly to the CPU via the disk drive system 108. The instant-on system refers to a system in which the applications are available instantly after the computer is booted.

There can be several variations of this system. For instance, one variation may have the instant-on system 107 as an independent component connected to the system bus 101, without being part of the main memory. Such a system can contain a separate memory module. In such a system, the component 107 can communicate to the CPU directly and also to the memory as well as disk separately.

FIG. 2 illustrates the main parts of the secure instantly-on system 107. As in FIG. 1, the CPU 102, the system memory 106 or the disk drive system 108, or all, may communicate with parts of the instantly on system 107.

The instantly-on system 107 may contain memory access controller 201 to regulate access to memory locations within 107. The memory locations within 107 may contain a read-only memory 202. The read-only memory 202 may store the computer BIOS and may be compatible with one or more operating systems. The non-volatile memory for kernel 203 stores the programs of the operating system. The non-volatile memory for applications 204 stores application programs, such as word processors. The application configuration/session data area 205 stores information needed by application programs and/or operating systems may be stored in volatile or non-volatile memory. The secure memory disk controller 206 interfaces with the disk drive system 108. The component 206 provides access to contents of memory areas 202-205 as if they were in a disk drive, but with added protections to regulate modification of these contents.

FIG. 3 illustrates components of the memory access controller 201. One component may be ROM access component 301 which reads, but does not write, information contained in the ROM 202. The non-volatile memory access component 302 reads, but does not write, information contained in both the non-volatile memory for kernel 203 and the non-volatile memory for applications 204. The secure read/write access component 303 reads and writes information contained in the application configuration/session data area.

FIG. 4 illustrates components of the secure non-volatile memory controller 206. We also refer to it as a RAM disk controller, indicating a non-volatile disk-like component situated inside the permanent memory, previously the RAM. The RAM disk controller may contain a component 401 which reads, but does not write, information contained in the ROM 202. The RAM disk controller may contain an installation controller 402 that may write information into the non-volatile memory for kernel 203, or the non-volatile memory for applications 204, or both. In addition, the RAM disk controller may contain a read only non-volatile memory access controller 404. The RAM disk controller may also contain a secure read/write access component 405 to read and write information in the application configuration/session data area. In operating systems such as Windows, the registry holds some of the configuration data. In addition to the configuration and registry information, there are several pieces of changeable data that needs to be written, specific to the application and session that is going on. This data is also referred to as changeable data in many parts of the description of this invention.

FIG. 5 illustrates details of the secure read/write access component. This component is accessed whenever the computer system wants to write information relevant to a specific operating system or application program. This is controlled using the read/write access component 303 if the request comes through system memory 106. If the request for read/write is coming through the disk drive system 108, then this is controlled using the read/write access component 404. FIG. 5 illustrates the details for both 303 and 404.

The secure read/write access component 303 or 404 gets incoming requests 501 for access to changeable data in the application configuration/session data area 205. A request 501 may be a request to read data or it may be to write data. If the request is a read request 502, then the request is forwarded to a read controller 503 which fetches the relevant data from the data area 205.

If the request 501 is a write request 504, then the request is sent to a component 505 that has to fetch some application-specific information before deciding whether to allow the write operation associated with the request. Information about specific programs is stored in a non-volatile memory area 506. The information in 506 contains two areas: information specific to kernel programs is stored in an area 507 while information about applications is stored in another area 508. In the present invention, programs are enhanced with information about their expected behavior. If viruses or other malicious software were to modify a program or data associated with the program, then a component decides whether this operation is within the normal range of activities for the associated program. The originator of the particular software program provides information about this normal range of operations, in the same way that a manufacturer may provide operating parameters for a physical device.

Based on the information about the specific program that is involved in the write operation, a component 509 decides whether the write operation may proceed. If the decision is to not allow the write operation, then the request is rejected. If the decision is to allow the write operation based on properties of the specific program, then the request is forwarded to a write controller 510 which then writes the application-specific configuration or session data into the memory area 205.

FIG. 6 illustrates the installation controller 402. Installations are done through an authentication system that is not modifiable without replacing the controller hardware. The installation procedure may be done in different ways, such as at the time of building the computer system (factory installation), through installation of hardware without opening the computer case (hardware installation), or through software update with appropriately secure authentication support.

The authentication system in FIG. 6 may use a cryptographic protocol, such as public-key or private-key cryptosystems. A program can be validated by verifying that the creator of the program is indeed who they claim to be, through a key-based certification authority. This authentication is typically used for software programs that are downloaded through a verification process to check for authenticated signature. In the present invention, such an authentication process is part of the hardware that prevents modifications of the programs by viruses and other malicious software. Software components used for authentication can themselves be susceptible to attacks that alter their behavior. In the present invention, a non-modifiable hardware component is used to perform the authentication.

In FIG. 6, a request 601 to install or update software through the installation controller 402 enters a non-modifiable hardware authentication module 602. This module validates the request using one of several commonly used authentication methods to verify the identity of the creator of the program. If the program is not thus authenticated it is considered to be invalid and it is discarded without modifying the non-volatile memory. Once validated, the program has to be checked against an installation database 603 stored in non-volatile memory within the installation controller. A module 604 checks this database to see whether the program to be installed or updated is indeed a new version. Other checks may be done, for example to see whether this program is compatible with other installed programs. If the program is indeed to be installed on the basis of the checking in module 604, then three actions take place. First, the program's code is changed in either the kernel or application area of the non-volatile memory 203 or 204. Second, the installation database 603 is updated through an updating module 605. Third, the program parameters within areas 507 or 508 in the secure read/write access module (303 and/or 404) are updated with information about this installed program. If the program is a kernel program, information is updated through module 606, if it is an application program the parameters are updated through module 607.

The non-volatile memory can be flash, MRAM, SONOS, MONOS, FeRAM, or other types of memory technologies.

One of the problems of flash memory is limited amount of writes (say 10,000 or 100,000 times). Hence it is important to protect the main application and/or OS areas with write protection. Large parts of the application code, which do not require modification, are stored in write protected regions of the non-volatile memory. This will also result in improved security since these regions cannot be corrupted by viruses or malicious or inadvertent actions. Changeable data is stored in non-volatile or volatile RAM.

One implementation possibility is to physically organize the application and/or operating system in a flash memory device with write protection. The flash will be part of the main memory. Updating an application can be the process of buying a new nonvolatile memory module or flash memory and plugging it in, eliminating the painful process of installation.

In order to implement the proposed method in a computer with virtual memory, one needs to pin down the applications code and/or operating system to a region of the main memory and effectively bypassing the virtual memory mechanism. By pinning down the application code and/or the operating system, we simply mean that the relevant software is enabled to stay permanently in the non-volatile region of the main memory. Virtual memory systems are typically paged and pages are replaced when new pages cannot find space. The region of the main memory where OS is residing should not allow any replacements. One can accomplish the pinning down in a variety of ways. It can be accomplished by hardware or software or a combination of the two. In virtual memory systems, the page table contains the information to translate virtual addresses to real addresses. FIG. 7 illustrates the overview of the translation. The page table 701 contains entries 702 to map the virtual address to physical address. There are several entries 702 to correspond to the various pages in the virtual memory. There are many implementations for page tables such as hashed page tables and multi-level page tables. FIG. 8 shows a typical page table entry in detail. In some implementations, the full virtual address may not be stored in the page table. FIG. 8 shows that in addition to the translation information, the page table also contains information to help with replacements, caching, and read/write/execute (RWE) permissions. A mechanism to achieve pin down consists of initializing/hard-coding the Reference bit(s) and/or replacement information bit(s) 801 with values to indicate inhibiting of replacements, the valid bit to indicate presence in the real memory at power up itself and also values in RWE bits to implement write protection. For instance, in an example implementation, if 3 bits are used for RWE permissions 802, R can be set to 1 indicating read permissions, W can be set to 0 indicate no write permissions, and E can be set to 1 indicating execute permissions. Other implementations using only 2 bits with some encoding is also possible. The pinning down can be achieved in hardware ways by hardcoding the values into the storage that holds the page table information. It may also be achieved by making BIOS or an initialization software write it quickly at boot time. It can also be accomplished by a combination of hardware and software techniques. When an operating system or an application is updated if it is going to span more pages than the previous version, it will be necessary to modify the page table entries correspondingly.

Another additional mechanism to speedup the boot with pinning-down will be to initialize/hard-code TLB (Translation Lookaside Buffer) entries with relevant page table entries. The TLB operates as a cache for the page table and TLB misses can be avoided for the applications and/or the operating system to reduce the latency to boot. The TLB entries can be hardcoded to indicate presence of the relevant page table entries in TLB. Initializing the page table and TLB entries can be done by a BIOS-like software.

There is an approach used to provide instant-on capabilities, such as splashtop and a similar Dell Lattitude-On [12]. These approaches do not involve the methods of this invention, but instead provide just a few often-used applications in a simplified operating system that exists on the computer and may be activated instead of complete applications. By contrast the invention described here pertains to quick or instant activation of the computer's applications and/or main operating system. The operating system referred to in this invention is a full-blown operating system like Microsoft Windows or Linux. The applications referred to in this invention are programs like Microsoft Word, Excel, etc.

Although the invention is described with specific details, it is intended to cover alternatives, modifications and equivalents, as can be reasonably included within the spirit and scope of the invention as defined by the appended claims. It is noted that the headings are used only for organizational purposes and not meant to limit the scope of the descriptions or claims.

REFERENCES

1. U.S. Pat. No. 5,787,445—Daberko—Operating System including file management for use in devices utilizing flash memory as main memory

2. U.S. Pat. No. 7,406,549—Ong—Support for non-standard device containing operating system data

3. Application-2006-0149956—Chang—Instant-on computer system and method for instantly booting a computer system

4. Application 2007-0112899—Edwards—Method and Apparatus for fast Boot of an Operating System

5. Application 2007-0083743—Tsang—Fast Booting an operating system from an off state

6. U.S. Pat. No. 5,987,536—Johnson—Computer System having flash memory bios which can be accessed while protected mode operating system is running

7. U.S. Pat. No. 6,598,169—Warwick—System and Method for accessing information made available by a kernel mode driver

8. U.S. Pat. No. 5,592,669—Robinson—File Structure for a non-volatile block erasable semiconductor flash memory

9. U.S. Pat. No. 5,307,497—Feigenbaum—Disk operating system loadable from read only memory using installable file system interface

10. U.S. Pat. No. 5,579,522—Christenson—Dynamic Non Volatile memory update in a computer system

11. U.S. Pat. No. 7,406,560—Bulusu—Using multiple non-volatile memory devices to store data in a computer system.

12. Splashtop desktop—www.splashtop.com/splashtop_overview.php

13. Hennessy and Patterson, Computer Architecture: A Quantitative Approach, Morgan Kaufman Publishers

14. J. P. Shen and M. L. Lipasti, Modern Processor Design: Fundamentals of Superscalar Processors, McGraw Hill Publishers.

15. Michael Wu and Willy Zwanepoel, eNVY: A Non-Volatile, Main Memory Storage System, Proceedings of the ACM International Conference on Architectural Support for Programming Languages and Operating Systems (ASPLOS), October 1994, pp. 86-97

16. Taeho Kgil, David Roberts, Trevor Mudge, Improving NAND Flash based Disk Caches Proceedings of the ACM International Symposium on Computer Architecture (ISCA), 2008, pp. 327-336.

17. Eugene B. John, Thomas John and Lizy K. John, U.S. patent application Ser. No. 12/198,133, Method and Apparatus for Secure Instantly-On Computer System, Filed 26 Aug. 2008. 

1. A computer system with a processor with a virtual memory system with a non-volatile main memory region, with large parts of the applications code loaded to the non-volatile region of the main memory, and a mechanism to pin down large parts of the applications code to the non-volatile region of the main memory so that at power up the applications code does not have to be transferred from disk to the main memory resulting in a fast boot.
 2. The computer system as in claim 1 where the mechanism to pin down applications code to the non-volatile memory is built in hardware.
 3. The computer system as in claim 1 where the mechanism to pin down the applications code to the non-volatile memory is built in software.
 4. The computer system as in claim 1 where the mechanism to pin down applications code to the non-volatile memory is a built as a combination of hardware and software.
 5. The computer system as in claim 1 where the non-volatile memory is flash memory.
 6. The computer system as in claim 1 where the processor has access to configuration information for the computer system and executes programs based on the configuration information.
 7. The computer system as in claim 1 where the non-volatile memory contains a read-write-memory part that may be changed during the user operation of the computer system, and contains a read-only-memory part containing applications that may not be changed during user operation of the computer system.
 8. The computer system as in claim 1 where the processor has access to configuration information for the computer system, where part of the configuration information is stored in the portion of the memory that may not be changed during user operation and another part of the configuration information is stored in the portion of the memory that may be changed during user operation.
 9. The computer system as in claim 1 with a method and apparatus for changing the non-volatile memory contents during a non-user operation of the computer system allowing factory installation.
 10. The computer system as in claim 1 with a method to utilize a public-key cryptosystem to securely modify the non-volatile memory.
 11. The computer system as in claim 1 containing an electronic component called the non-volatile memory controller that gives the processor access to the contents of the non-volatile memory as in a normal disk drive.
 12. A computer system with a non-volatile, secure, write-protectable main memory permanently housing an applications code area that is never modified by the user, and with a memory user area that is modified only when user programs are changed and a session data area that contains session specific information that may be changed during execution, and using a memory controller to access and control the different memory areas.
 13. The computer system as in claim 12 with an installation controller.
 14. The computer system as in claim 12 with a method to update applications by physically replacing the non-volatile memory modules housing the old software with non-volatile memory modules housing the new software, the non-volatile memory being part of the main memory of the computer from which applications can be directly run.
 15. The computer system as in claim 12 using parts of the main memory for virtual memory operation.
 16. The computer system as in claim 12 with flash memory as the non-volatile memory.
 17. The computer system as in claim 12 with a method to update the application software by updating the non-volatile memory without physically removing memory modules, by authenticating the programs with information encrypted using a public key encryption and authentication system.
 18. The computer system as in claim 12 with a method and apparatus for providing the non-volatile memory controller with a secure access mechanism that prevents abnormal allocations of memory to applications.
 19. The computer system as in claim 12 with a method and apparatus for providing the non-volatile memory controller with a program boundary monitor to prevent overwriting of one application's memory area by another application.
 20. A method to pin down large parts of the applications code to a non-volatile main memory region so that at power up the applications code does not have to be transferred from disk to the main memory resulting in a fast boot.
 21. The method as in claim 20 where the method comprises of initializing or hard coding page table entries with values to indicate presence of applications pages in main memory, its non-replaceability from the main memory and its write protection.
 22. The method as in claim 20, where the method comprises of initializing or hard coding TLB entries with values to indicate presence of applications in main memory, its non-replaceability from the main memory and write protection.
 23. The method as in claim 20, where the method is implemented using hardware.
 24. The method as in claim 20, where the method is implemented in software.
 25. The method as in claim 20, where the method is implemented using a combination of hardware and software.
 26. The computer system as in claim 1 where the computer is an embedded computer.
 27. The computer system as in claim 12 where the computer is an embedded computer.
 28. A computer system in which part of the disk address space is made of fast non-volatile semiconductor based memory with the applications running directly from the non-volatile memory part of the disk space.
 29. An instant-on computer system, with a non-volatile memory region, with an instant-on memory controller connected to the CPU, which will pin the applications software to a non-volatile main memory of the computer, so that at power on the applications does not have to be loaded from the disk to the main memory.
 30. The computer system as in claim 29 where the instant-on memory controller is accessed as memory.
 31. The computer system as in claim 29 where the instant-on memory controller is accessed as I/O device.
 32. The computer system as in claim 29 with an installation controller.
 33. The computer system as in claim 29 with a method to update applications by physically replacing the non-volatile memory modules housing the old software with non-volatile memory modules housing the new software.
 34. The computer system as in claim 29 using parts of the main memory for virtual memory operation.
 35. The computer system as in claim 29 with flash memory as the non-volatile memory.
 36. The computer system as in claim 29 with a method to update the software by updating the non-volatile memory without physically removing memory modules, by authenticating the programs with information encrypted using a public key encryption and authentication system.
 37. The computer system in claim 29 with a method and apparatus for providing the instant-on memory controller with a secure access mechanism that prevents abnormal allocations of memory to applications.
 38. The computer system in claim 29 with a method and apparatus for providing the instant-on memory controller with a program boundary monitor to prevent overwriting of one application's memory area by another application.
 39. The computer system as in claim 29 where the instant-on memory controller is connected to the disk. 